package com.hwj.mapper;

import com.hwj.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_role_permission】的数据库操作Mapper
* @createDate 2023-11-27 23:14:22
* @Entity com.hwj.entity.RolePermission
*/
@Mapper
public interface RolePermissionMapper {

    int deleteByPrimaryKey(@Param("roleId") Long roleId,@Param("permissionId") Long permissionId);

    int insert(RolePermission record);

    int insertSelective(RolePermission record);

    List<RolePermission> queryByRoleId(Long roleId);
    RolePermission selectByPrimaryKey(@Param("roleId") Long roleId,@Param("permissionId") Long permissionId);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);

    int deleteByRoleId(Long roleId);
}
